/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

/**
 * 驿站站点管理-驿站管理
 */
import React, { useState } from 'react';
import { PageContainer } from '@ant-design/pro-layout';
import { Tabs } from 'antd';
import SensitiveWordTable from '@/components/_pages/yz/sensitive/sensitiveWordTable';

const VehicleCallRegister: React.FC = () => {
  const [activeKey, setActiveKey] = useState<string>('1');
  const tabList = [
    {
      tab: '驿站名称关键词',
      key: '1',
    },
    {
      tab: '驿站地址关键词',
      key: '2',
    },
    {
      tab: '取件码关键词',
      key: '3',
    },
  ];

  return (
    <PageContainer>
      <Tabs onChange={setActiveKey}>
        {tabList.map((item) => (
          <Tabs.TabPane tab={item.tab} key={item.key} />
        ))}
      </Tabs>
      <SensitiveWordTable activeKey={activeKey} />
    </PageContainer>
  );
};

export default VehicleCallRegister;
